/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.gob.mh.dgii.model.pojos.ruc;

import java.io.Serializable;
import javax.validation.Valid;
import sv.gob.mh.dgii.common.Utils;


/**
 *
 * @author hgonzalez
 */
public class C implements Serializable {

	private static final long serialVersionUID = 1L;
        
        @Valid
        private Domicilio domicilio = new Domicilio("03");
        
        private String reset;
                
        public C(){
            this.domicilio = new Domicilio();
        }
        
        public C(F210 f210){
            if(Utils.isNullOrEmpty(f210.getDomicilioEnEdicion())){
                this.domicilio = new Domicilio();
            }else{
                this.domicilio = f210.getDomicilioEnEdicion();
            }            
            /*if(f210.getOld_values().containsKey("domicilioNotificacion")){
                this.domicilioNuevo = f210.getDomicilioNotificacion();
            }else{
                System.out.println("No existe viejo");
                this.domicilioNuevo = new RcDomicilio();                
            } */           
        }

    /**
     * @return the domicilio
     */
    public Domicilio getDomicilio() {
        return domicilio;
    }

    /**
     * @param domicilio the domicilio to set
     */
    public void setDomicilio(Domicilio domicilio) {
        this.domicilio = domicilio;
    }

    /**
     * @return the reset
     */
    public String getReset() {
        return reset;
    }

    /**
     * @param reset the reset to set
     */
    public void setReset(String reset) {
        this.reset = reset;
    }
        
        

}
